$program=""
$arguments=""

$psi = new-object "Diagnostics.ProcessStartInfo"
$psi.FileName = """"+$program+""""
$psi.Arguments = $arguments
$proc = [Diagnostics.Process]::Start($psi)

Measure-Command { $proc.WaitForExit() }